package byx.container.annotation.demo.StrategyDemo.b;

import byx.container.annotation.PackageContainer;
import byx.container.core.Container;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class Demo {
    @Test
    public void test() {
        Container container = new PackageContainer();

        StrategyRunner runner = container.getObject(StrategyRunner.class);
        assertEquals("s1: aaa", runner.run("s1", "aaa"));
        assertEquals("s2: bbbb", runner.run("s2", "bbbb"));
        assertEquals("s3: abc", runner.run("s3", "abc"));
    }
}
